﻿using System;

namespace OpenLS.Spreadsheet
{
    class DoubleFormula: ConstantFormula
    {
        private readonly double _value;

        public DoubleFormula(double value)
        {
            _value = value;
        }

        public override string Text
        {
            get { return _value.ToString(); }
        }

        internal override object GetValue()
        {
            return _value;
        }

        public override CellFormulaBase Offset(CellRelativeAddress cellRelativeAddress)
        {
            return this;
        }
    }
}